ISCModelObjectCollection::Add Arguments

Here is the signature for the Add function:

ISCModelObject * Add(VARIANT Class,  VARIANT ObjectId)

The following table contains the valid arguments for the Add function:

Parameter

Valid Type/Value

Description

Class

VT_BSTR � Name of a class

Identifies an object class by the given class name.

Class

VT_BSTR � Class ID of an object type

Identifies an object class by the given identifier.

ObjectId [optional]

Empty

The API assigns an object identifier for a new object.

ObjectId [optional]

VT_BSTR � Object ID for a new object

The API assigns the given object identifier to the new object.

For information about valid object class names and identifiers, see the HTML document erwin Metamodel Reference, in the Metamodel Reference Bookshelf located in the erwin Data Modeler installation folder.